package edu.umd.ion.wavemeter.service;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * Data class used to request one pattern from the server
 * The client sends one object per requested pattern.
 * @author pmaunz
 *
 */
public class PatternRequest implements IsSerializable {
	/**
	 *  Channel for which the pattern is requested
	 */
	public int Channel;
	
	/**
	 *  Pattern Id of a single pattern
	 */
	public int Pattern;
	
	/**
	 *  Minimum delay after which to get the pattern. Counted after
	 *  the request is received by the server.
	 */
	public long Delay;
	
	/**
	 *  Timestamp of the last received pattern or 0 when no patterns were
	 *  received previously.
	 */
	public long LastTimestamp;
	
	/**
	 *  Number of points which should be averaged to reduce the number of points
	 *  in the pattern
	 */
	public int AveragePoints;
}
